package com.aaa.os;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @ fileName:OrderAApp
 * @ description:
 * @ author:zhz
 * @ createTime:2021/1/11 16:50
 */
@SpringBootApplication
//@EnableEurekaClient //开启eureka客户端  当注册中心为eureka时，使用该注解
@EnableDiscoveryClient //开启客户端发现  任何注册中心都可以使用该注解
@MapperScan("com.aaa.os.dao")
@EnableTransactionManagement
public class OrderAApp {
    public static void main(String[] args) {
        SpringApplication.run(OrderAApp.class,args);
    }
}
